﻿using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using Microsoft.VisualStudio.Shell.Interop;
using Microsoft.VisualStudio.Shell;

namespace GordonKristan.cppcheck
{
	/// <summary>
	/// CPPcheck tool window.
	/// </summary>
	[Guid("ce3378a4-7a22-4b50-9f7a-3215766d3ddc")]
	public class ToolWindow : ToolWindowPane
	{
		//User control associated with this class.
		private ToolWindowControl control;

		/// <summary>
		/// Standard constructor for the tool window.
		/// </summary>
		public ToolWindow() :
			base(null)
		{
			// Set the window title reading it from the resources.
			this.Caption = Resources.ToolWindowTitle;
			//Icon for the tool window.
			this.BitmapResourceID = 301;
			this.BitmapIndex = 1;

			control = new ToolWindowControl();
		}

		/// <summary>
		/// Gets the user control associated with this window.
		/// </summary>
		override public IWin32Window Window
		{
			get { return (IWin32Window)control; }
		}

	}
}
